<template>
    <my-dialog :title="title" v-model="dlgVisible" :width="400">
        <qr-code-view :modelValue="qrcode" style="width:100%;aspect-ratio:1/1;" />
    </my-dialog>
</template>

<script>

export default{
    name:"QrCodeDlg",
    props:{
        title:{
            type:String,
            default:"二维码"
        },
        qrcode:String,
    },
    data(){
        return {
            dlgVisible:false
        }
    },
    methods:{
        open(){
            this.dlgVisible = true;
        },
        close(){
            this.dlgVisible = false;
        }
    }
}
</script>